package com.campus.campus.service;

import com.campus.campus.job.dto.LossRecordDTO;
import com.campus.campus.job.entity.CampusCards;
import com.baomidou.mybatisplus.extension.service.IService;
import com.campus.campus.job.entity.LossRecord;
import com.campus.campus.job.entity.TransactionDetail;
import com.campus.campus.job.vo.CampusCardsInfoVO;
import com.campus.campus.job.vo.TransactionDetailVO;
import com.campus.common.result.Result;

import java.util.List;

/**
 * <p>
 * 校园卡表 服务类
 * </p>
 *
 * @author mwb
 * @since 2024-11-17
 */
public interface ICampusCardsService extends IService<CampusCards> {

    /**
     *查询校园卡信息
     */
    CampusCardsInfoVO getCampusCardInfo();

    /**
     * 查询余额及交易记录
     */
    List<TransactionDetailVO> getTransactionRecord();

    /**
     * 校园卡挂失
     */
    void lossCard(LossRecordDTO lossRecordDTO);

    Result getBalance();
}
